﻿using System.IO;
using Pattern.Model;

namespace Pattern.Data
{
    public static class SaveOutData
    {
        public static void Save(Out data, string fileName)
        {
            var file = new FileInfo(fileName);


            using (var str = file.CreateText())
            {
                foreach (var outData in data.OutData)
                {
                    str.WriteLine("{1};{0};{2}", outData.Mse, outData.H, outData.P / 100);
                }

            }

        }
    }
}